package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.AgentBonusGroup;
import com.weixing.mall.provider.model.query.AgentBonusGroupQuery;
import com.weixing.mall.provider.model.vo.AgentBonusGroupVo;

import java.util.List;

/**
 * <p>
 * 代理商分红团队 服务类
 * </p>
 *
 * @author Small
 * @since 2020-03-12
 */
public interface IAgentBonusGroupService extends IService<AgentBonusGroup> {

    AgentBonusGroup findByAgentId(Long id);

    List<AgentBonusGroup> findByObliee(Long id);

    boolean hasGroup(Long agentId);

    IPage<AgentBonusGroupVo> selectListOfPage(Page page, AgentBonusGroupQuery query);

    AgentBonusGroup findByAgentIdAndNormalState(Long agentId, Integer isNormal);
}
